/**
 * 
 */
package com.geezdata.cps.ttk.api.controller;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.geezdata.cps.base.annotation.LoggerOut;
import com.geezdata.cps.base.response.BaseResponse;
import com.geezdata.cps.ttk.common.request.QueryBillListRequest;
import com.geezdata.cps.ttk.common.response.QueryBillListResult;
import com.geezdata.cps.ttk.query.query.BillService;

/**
 * @author sszheng
 * @date 创建时间：2018年11月6日 下午2:34:47
 *
 */
@RestController
@RequestMapping(value="/bill")
public class BillController {
	@Autowired
	private BillService billService;
	
	@LoggerOut
    @RequestMapping(value = "/list", method = RequestMethod.POST)
    public BaseResponse<QueryBillListResult> queryBillList(@Valid @RequestBody QueryBillListRequest request) {
		return BaseResponse.success(billService.getBillList(request));
    }
}
